<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DRYCMS-下载</title>
<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css">
<link rel="stylesheet" href="/document/document.css">
<script src="/layuiadmin/layui/layui.js"></script>
</head>
<body>
<!---->
{% include '@Html/document/header.html.twig' %}
<!---->
<div class="layui-main dry-content dry-center">
    <a href="https://gitee.com/drycms/drycms" id="download" class="layui-btn layui-btn-lg layui-hide" target="_blank"><i class="layui-icon layui-icon-download-circle dry-inline-block"></i>立即下载</a>
</div>
<!---->
{% include '@Html/document/footer.html.twig' %}
<!---->
<script>
layui.use(["element", "jquery"], function(element, $){
    function setMiddle()
    {
        var h = $(window).height();
        var sum = 151;
        var span = h - sum;
        var buttonHeight = $("#download").height();
        var marginTop = parseInt((span - buttonHeight) / 2);
        $(".dry-content").css({"min-height": span + "px"});
        $("#download").css({"margin-top": marginTop + "px"}).removeClass("layui-hide");
    }
    
    $(function(){
        setMiddle();
        window.onresize = setMiddle;
    });
});
</script>
</body>
</html>